<?php
class EnvironmentDevelopment extends Environment
{
	
	public function __construct(){
		$this->setDebugMode(true);
	}

	public function getConfiguration()
	{
		$parentConfiguration = parent::getConfiguration();
		$parentConfiguration['name'] = $parentConfiguration['name'] .' DEV';
		return $parentConfiguration;
	}
	
	public function getComponentLog()
	{
            return array(
                'class' => 'CLogRouter',
                'routes' => array(
                    array(
                        'class' => 'CWebLogRoute',
                        'levels' => 'error, warning, trace, info',
                        'showInFireBug' => true
                    ),
                    array(
                        'class' => 'CFileLogRoute',
                        'levels' => 'error, warning, trace, info',
                    ),
                ),
            );
	}
	
	public function getComponentDB()
	{
		return array(
						'connectionString' => 'mysql:host=localhost;dbname=southfq5_cup_autogestion',
						'emulatePrepare' => true,
						'username' => 'southfq5_sscupau',
						'password' => 'Cambiar1977',
						'charset' => 'utf8',
					 	'enableProfiling'=>true,
					 	'enableParamLogging'=>true,
		
						'schemaCachingDuration'=>3600,
		);
	}
}
?>